import 'package:fish_redux/fish_redux.dart';
import 'package:www.znpigai.teacher/home_page/homework_list_component/item/state.dart';

import 'action.dart';

Reducer<HomeworkState> buildReducer() {
  return asReducer(
    <Object, Reducer<HomeworkState>>{
      AnswerAction.action: _onAction,
    },
  );
}

HomeworkState _onAction(HomeworkState state, Action action) {
  final HomeworkState newState = state.clone();
  return newState;
}
